<?php


	namespace app\lib\exception;


	use app\lib\enums\ApiCodeEnums;
	use think\Exception;

	class ApiException extends Exception
	{
		//自定义的错误代码
		public $code;
		//错误具体信息
		public $message;

		public function __construct ($message, $code = ApiCodeEnums::ERROR) {
			$this->code = $code;
			$this->message = $message;
		}
	}
